# "1.点击余额记录，编写金额“2199”，点击“搜索”按钮。
# 2.查询成功"
testCase44='DBshop044_查询余额流程'
import  time
from public.action import *
from public.testData import *
from public.tools import*
from public.business import *
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'客户余额','余额记录')
firefox.find_element_by_name('money_change_num').send_keys('2199')#输入2199
firefox.find_element_by_xpath('//button[@type="submit"]').click()  #点击搜索
time.sleep(4)

try:
    firefox.find_element_by_xpath('//td[text()="2199.00"]').is_displayed()
    writeLog('%s 测试通过' % testCase44)
except:
    writeLog('%s 测试不通过' % testCase44)
    getPhoto(firefox)
firefox.quit()